package ai.moran.demo.enums;

public enum TurnstileStates {
    /**状态*/
    Unlocked, Locked;

    public static TurnstileStates getByState(String state){
        for (TurnstileStates turnstileStates:TurnstileStates.values()) {
            if(state.equals(turnstileStates.toString())){
               return  turnstileStates;
            }
        }
        return null;
    }
}